import request from '@/api/request'

function orderBackList(params) {
  return request({
    url: '/api/leju/admin/orderBack/list',
    method: 'get',
    params
  })
}
function orderBackdetail(params) {
  return request({
    url: '/api/leju/admin/orderBack/detail',
    method: 'get',
    params
  })
}
// 拒绝退货
function rejectBack(params) {
  return request({
    url: '/api/leju/admin/orderBack/rejectBack',
    method: 'post',
    params
  })
}
// 确认退货
function agreeBack(params) {
  return request({
    url: '/api/leju/admin/orderBack/agreeBack',
    method: 'post',
    params
  })
}
// 收到退货
function backDone(params) {
  return request({
    url: '/api/leju/admin/orderBack/backDone',
    method: 'post',
    params
  })
}
// 关闭订单
function closeOrder(params) {
  return request({
    url: '/api/leju/admin/orderBack/closeOrder',
    method: 'post',
    params
  })
}
export {
  orderBackList, orderBackdetail, rejectBack, closeOrder, agreeBack, backDone
}
